php forum
php mysql forum
php mysql smarty
 
Topic Options
#313763 - 04/02/07 12:52 PM [7.1] Nicer look for smiley dropdown box
Maze Offline
Enthusiast

Registered: 10/13/99
Posts: 468
Nicer look for smiley dropdown box v1.0
Take a look at the smiley dropdown box on the "New Post" page. If you added some of your own smileys with different widths, it will look messy, because always six smileys are put in one row. This hack simply inserts a linebreak after a given width has been exceeded.

This is an easy hack with just a few modifications in one place.

Working Under
Has been tested with v7.1

Files Modified
/libs/ubbthreads.inc.php

Instructions
Follow the steps in the attached text file.


Attachments
2382-7HackSmileyDropdownv1.txt (84 downloads)


Top
#313764 - 04/02/07 05:37 PM Re: [7.1] Nicer look for smiley dropdown box [Re: Maze]
SGHB1138 Offline
Power User

Registered: 01/01/07
Posts: 59
Loc: UK
Thanks.

smile
_________________________
Stephen G
Give Yourself to the Geek Side @
http://cinemageek.co.uk

Top
#313769 - 04/03/07 12:15 AM Re: [7.1] Nicer look for smiley dropdown box [Re: SGHB1138]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
I was always thinking that it could be made cleaner with a table (:gasp:)
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#313781 - 04/03/07 06:52 PM Re: [7.1] Nicer look for smiley dropdown box [Re: Gizmo]
Rose Offline
Power User

Registered: 09/29/06
Posts: 76
Me too, Gizmo. smile If I knew the slightest thing about writing PHP, I'd do it.

Top
#313782 - 04/03/07 11:26 PM Re: [7.1] Nicer look for smiley dropdown box [Re: Rose]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
I've been quite busy lately, and my birthday is on the 8th, so I won't be able to take a look at it for a while wink
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#313794 - 04/06/07 04:05 AM Re: [7.1] Nicer look for smiley dropdown box [Re: Gizmo]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Thanks. I have altered mine, so that it starts much closer to the left hand side of the page, and I have increased the number of smilies to 16 per line.

For some of the wider images, I had to database dive to split them up, so maybe your idea in conjunction with my changes would work well smile
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#313799 - 04/06/07 05:33 PM Re: [7.1] Nicer look for smiley dropdown box [Re: Ian_W]
Rose Offline
Power User

Registered: 09/29/06
Posts: 76
Ian, care to share the bit that starts it closer to the left? I could sure do with that. smile

Top
#313911 - 04/20/07 03:30 PM Re: [7.1] Nicer look for smiley dropdown box [Re: Rose]
Rose Offline
Power User

Registered: 09/29/06
Posts: 76
I'm wondering if anyone knows how I can make the graemlins menu move over to the left? I need this badly.

Can anyone give me a hint on where I could start looking? Any help would be most appreciated.

Thanks. smile

Top
#314291 - 06/01/07 08:38 AM Re: [7.1] Nicer look for smiley dropdown box [Re: Rose]
mag Offline
Junior Member

Registered: 09/23/04
Posts: 1
Yes, Please. My IE smiley box is way over to the right and needs scrolling.

Top
#316216 - 11/01/07 09:52 AM Re: [7.1] Nicer look for smiley dropdown box [Re: mag]
luckie Offline
Newbie

Registered: 10/24/07
Posts: 11
Doesn't seem to work for 7.2.2.
Has anyone got an update?

Top
#316217 - 11/01/07 10:26 AM Re: [7.1] Nicer look for smiley dropdown box [Re: luckie]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
bleh, i did it for 7.2.2 and never really thought much of it.

seemed simple to do..

you want to:

1. move the smiley icon (toolbar) over to the left.. same thing
2. then you change the width deal to iterate over the smileys..

should be VERY similar, if you just look @ the subtle differences.

if it's not obvious, i can maybe look a little closer at some point and try to gin it up for the 'coding impaired' laugh (no disrespect intended)
_________________________

Top
#316222 - 11/01/07 12:16 PM Re: [7.1] Nicer look for smiley dropdown box [Re: sirdude]
luckie Offline
Newbie

Registered: 10/24/07
Posts: 11
It's indeed not thát obvious for people who never experimented with the code. No idea even what the difference between 7.1 and 7.2 is, how should I know where to adjust then... smirk

It's not out of laziness I ask an update, it's due to not knowing..

If this forum is for developpers only, let me know, then I shouldn't be here cool

Top
#316223 - 11/01/07 12:55 PM Re: [7.1] Nicer look for smiley dropdown box [Re: luckie]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
no no. sorry luckie. i meant no disrespect (as i stated above).

you are MORE than welcome to ask for modifications..

i can look @ 7.2.2 and see what the subtle differences might be.

then if there is time, i can post it..

that is if Yarp™ doesn't beat me to it.. he's a sly coder laugh
_________________________

Top
#316224 - 11/01/07 01:01 PM Re: [7.1] Nicer look for smiley dropdown box [Re: sirdude]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
ok, i looked @ the mod posted.. and that doesn't change at all. just do exactly as it states there.

then to move the smiley icon to the left you would do:

open up /templates/default/standard_text_editor.tpl

find:
Php Code:
<a href="javascript: void(0);" onclick="showHTML('smileys');" title="{$lang.SMILIES}" alt="{$lang.SMILIES}"><img id="smiley" onmouseover="raiseButton(this.id);" onmouseout="normalButton(this.id);" onmousedown="lowerButton(this.id);" class="markup_panel_normal_button" src="{$config.BASE_URL}/images/{$style_array.markup_panel}/smiley.gif" /></a>
 


cut that out (line ~53ish) and move it before:

Php Code:
<a href="javascript: void(0)" onclick="DoPrompt('url');" title="{$lang.HYPER_ALT}" alt="{$lang.HYPER_ALT}"><img id="link" onmouseover="raiseButton(this.id);" onmouseout="normalButton(this.id);" onmousedown="lowerButton(this.id);" class="markup_panel_normal_button" src="{$config.BASE_URL}/images/{$style_array.markup_panel}/hyperlink.gif" /></a> 


that line (29 ish)

*poof* done smile
_________________________

Top
#316225 - 11/01/07 01:09 PM Re: [7.1] Nicer look for smiley dropdown box [Re: luckie]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
Originally Posted By: luckie
If this forum is for developpers only, let me know, then I shouldn't be here cool


You should be here! If you can follow do-this and do-that stuff, you are more then welcome. Heck, even if you can't do that, you are more then welcome here smile
_________________________

Top
#316226 - 11/01/07 02:03 PM Re: [7.1] Nicer look for smiley dropdown box [Re: blaaskaak]
luckie Offline
Newbie

Registered: 10/24/07
Posts: 11
Oh, I didn't mean to imply that you were disrespectful, I really was wondering if this is for developers only wink

Well, it worked cool, thanks.
Is there any way to adjust the order of the smileys? Or can this only be done by removing them all and adding them in the right order.. smirk

Top
#316227 - 11/01/07 02:19 PM Re: [7.1] Nicer look for smiley dropdown box [Re: luckie]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
7.3 addresses this by adding another field to that table.. ie: 'GRAEMLIN_SORT_ORDER' wink

as for 7.2.2 the easiest way would be to quickly add that field in your table and then manually use phpMyAdmin and put the numbers in the order you want.. this replaces having to write an admin cpanel interface for it..

then just change the query in ubbthreads to add 'ORDER BY GRAEMLIN_SORT_ORDER' and *poof* done..

might be easier for you to wait for 7.3 ?
_________________________

Top
#316228 - 11/01/07 02:21 PM Re: [7.1] Nicer look for smiley dropdown box [Re: sirdude]
luckie Offline
Newbie

Registered: 10/24/07
Posts: 11
Indeed - I'll wait. I can't *poof* the way you do grin

Top
#316229 - 11/01/07 02:31 PM Re: [7.1] Nicer look for smiley dropdown box [Re: luckie]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
Yes you can, wait for 7.3, and *poof* the functionality is there smile
_________________________

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks